package cn.tedu.storage.service;

import cn.tedu.storage.mapper.StorageMapper;
import cn.tedu.storage.tcc.StorageTCCAction;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class StorageServiceImpl implements StorageService{
   /* @Autowired
    private StorageMapper storageMapper;*/

    @Autowired
    private StorageTCCAction storageTCCAction;

    @Override
    public void decrease(Long productId, Integer count) {
       storageTCCAction.prepare(null, productId, count);
    }
}
